#include <stdio.h>

void swap0(int *a, int *b) {
    int tmp = *a;
    *a = *b;
    *b = tmp;
}

void swap1(int *a, int *b) {
    *a = *a + *b;
    *b = *a - *b;
    *a = *a - *b;
}

void swap2(int *a, int *b){
    *a = *a * *b;
    *b = *a / *b;
    *a = *a / *b;
}

void swap3(int *a, int *b){
    *a = *a ^ *b;
    *b = *a ^ *b;
    *a = *a ^ *b;
}
//...... ...... ..... ...... ......

int main() {
    int a = 9, b = 8;
    printf("a=%d,b=%d\n", a, b);
    swap0(&a, &b);
    printf("a=%d,b=%d\n", a, b);
    swap1(&a, &b);
    printf("a=%d,b=%d\n", a, b);
    swap2(&a, &b);
    printf("a=%d,b=%d\n", a, b);
    swap3(&a, &b);
    printf("a=%d,b=%d\n", a, b);
}
